{
const height = "350px";
const container = d3.create("div").style("position", "relative");
let svg = container
.append("svg")
.attr("class", "canvas")
.style("width", "90%")
.style("height", height);
drawBalls(svg);
svg.on("click", (e) => {
const coord = d3.pointer(e);
isA ? A.push(coord) : B.push(coord);
drawBalls(svg);
});
return container.node();
}